﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using candi;

public partial class getListByStore : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }


    protected void Button1_Click(object sender, EventArgs e)
    {
        if (txtEbayID.Text.Length > 0)
        {
            Common c = new Common();
            StoreList model = new StoreList();
            List<StoreList> flist = c.PagingListrRecord(txtEbayID.Text);
            model.Store = txtEbayID.Text;
            foreach (StoreList fbm in flist)
            {
                fbm.Store = txtEbayID.Text;
                //  Response.Write(fbm.Itemimage + fbm.Title + fbm.Itemtype + fbm.price + fbm.Store + "<br>");
                if (!fbm.ExistsTitle(fbm.Title))
                    fbm.Add();
            }
        }
    }
}